//
//  AnalyticsViewController.m
//  ExhibitForcePrototype
//
//  Created by Georgi Bachvarov on 12/5/12.
//  Copyright (c) 2012 Dilyana Todorova. All rights reserved.
//

#import "AnalyticsViewController.h"

@interface AnalyticsViewController ()

@end

@implementation AnalyticsViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
          self.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"Analytics" image:[UIImage imageNamed:@"122-stats"] tag:2];
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
  
}

- (IBAction)chartSegmentedControlValueChanged:(id)sender {
    if ([(UISegmentedControl *)sender selectedSegmentIndex]==0){
        self.imageView.image = [UIImage imageNamed:@"Col_3D.jpg"];
    }else{
        self.imageView.image = [UIImage imageNamed:@"CountryChart"];
    }
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
